import Vue from 'vue'
import App from './App.vue'
import router from './router.js'
//引入main.css
import './assets/css/login.css'
import './assets/css/main.css'
import './assets/css/settings.css'
import './assets/img/avatar-max-img.png'
import './assets/img/logo3.png'
import './assets/js/screen.js'

// 注册一个全局自定义指令 `v-focus`
Vue.directive('focus', {
    // 当被绑定的元素插入到 DOM 中时……
    inserted: function(el) {
        // 聚焦元素
        el.focus()
    }
})

new Vue({
    el: '#app',
    template: '<App />',
    router,
    components: {
        App
    }
})